package spring_quartz;


import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class HelloJob {
	
	private static Logger log=LoggerFactory.getLogger(HelloJob.class);
	
	Calendar c=java.util.Calendar.getInstance();    //yyyy年MM月dd日hh时mm分ss秒
	SimpleDateFormat f=new java.text.SimpleDateFormat("yyyy.MM.dd hh:mm:ss");
	
	public HelloJob() {
		
	}

	public void execute(){
		
		System.out.println("hello quartz:  and this time is:......." +f.format(c.getTime()));
		
		System.out.println("hello quartz:  and this time is:......." +new Date());
		
	}

}
